package com.dragee.modules.officialWebsite.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dragee.config.resolver.LongJsonDeserializer;
import com.dragee.config.resolver.LongJsonSerializer;
import com.dragee.utils.excel.FieldDispose;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 公司简介
 * 
 * @author tc
 * @email tc@mail.com
 * @date 2023-05-19 09:49:00
 */
@Data
@TableName("gw_company_introduce")
public class CompanyIntroduceEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @ExcelIgnore
    private Long id;
    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    @FieldDispose(value = "title")
        private String title;
    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    @FieldDispose(value = "context")
        private String context;
    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @FieldDispose(value = "remark")
        private String remark;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "status")
        private Integer status;
    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private String createBy;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Date createTime;
    /**
     * 修改人
     */
    @TableField(fill = FieldFill.UPDATE)
    @ExcelIgnore
    private String updateBy;
    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @ExcelIgnore
    private Date updateTime;
    /**
     * 排序字段
     */
    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Long sort;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "fileId")
        private String fileId;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "discription")
        private String discription;
    /**
     * 
     */
    @ExcelProperty(value = "")
    @FieldDispose(value = "sendTime")
        private Date sendTime;

    @TableField(exist = false)
    private String fileName;
    @TableField(exist = false)
    private String filePath;
    }